package restapi_1.commodity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description="商品实体")
public class Commodity {
    @ApiModelProperty("商品编号")
    Long id;
    @ApiModelProperty("商品名")
    String name;
    @ApiModelProperty("商品价格")
    Double price;
    @ApiModelProperty("商品是否卖出")
    boolean ifSold;
}
